from langchain.schema import Document
from langchain.document_transformers import DoctranQATransformer
import os
import asyncio


os.environ["DASHSCOPE_API_KEY"] = "sk-965dc39b016c49ecbe29de180f4db2b6"

doc_str = '《在细雨中呼喊》是作家余华的第一部长篇小说，首发于《收获》1991年第6期'
documents = [Document(page_content=doc_str)]

async def tranform_documents():
    tranformers = DoctranQATransformer(openai_api_model='')


asyncio.run(tranform_documents())